package cn.lny.org.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DepartmentQuery {
    private Integer pageNum=1;
    private Integer pageSize=10;
    public Integer getPage(){
        return (this.pageNum-1)*this.pageSize;
    }
}
